import { request } from '@inbiz/utils';

/**
 * 查询分组列表
 */
export const getGroupList = (params?: any) => {
  return request(`/inbiz/api/services/wfpage/v${InbizConfig.API_VERSION}/wfPageGroup/treeList`, {
    method: 'GET',
    params,
    appId: params?.appId
  });
};

/**
 * 获取某个分组下的表单列表数据
 * @param params
 */
export const getGroupPageList = (params?: any) => {
  return request(`/inbiz/api/services/wfpage/v${InbizConfig.API_VERSION}/wfPage/loadPageList`, {
    method: 'GET',
    params,
    appId: params?.appId
  });
};